.header {
  z-index: 1;
  position: relative;
  height: 56px;
  line-height: 56px;
  border-bottom: 1px solid #f0f0f0;
  &.isFixed {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
  }
}

.header-logo {
  float: left;
  width: 100px;
  height: 56px;
  background: url(../../statics/logo.png);
  background-size: contain;
 
}
.nav {
  height: 56px;
  box-sizing: border-box;
  padding-left: 150px;

  float: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .iconfont {
    font-size: 20px;
  }
  li {
    padding: 10px;

    span {
      font-size: 17px;
    }

    a {
      &.active {
        color: #ea6f5a;
      }
      padding: 0 10px;
      font-size: 17px;
      display: block;
      color: #333333;

      &:hover {
        background: #eee;
      }
    }
  }
}

.search {
  position: relative;

  .SearchInfo {
    position: absolute;
    left: 0;
    top: 70px;
    width: 240px;

    padding: 0 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    background: rgb(255, 255, 255);
    .sanjiao {
      position: absolute;
      top: -30px;
      width: 0;
      height: 0;
      border: 15px solid transparent;
      border-bottom-color: rgb(243, 189, 243);
    }
    .search-title {
      margin-top: 20px;
      margin-bottom: 15px;
      line-height: 20px;
      font-size: 14px;
      color: #969696;
    }
    .SearchInfoSwitch {
      float: right;

      cursor: pointer;
      i {
        float: left;

        transition: all 0.2s ease-in;
        transform-origin: center center;
        &:active {
          transform: rotate(360deg);
        }
      }
    }
    .searchList {
      overflow: hidden;
      a {
        display: block;
        float: left;
        line-height: 20px;
        padding: 0 5px;
        margin-right: 10px;
        margin-bottom: 15px;
        font-size: 12px;
        border: 1px solid #ddd;
        color: #787878;
        border-radius: 3px;
      }
    }
  }

  .search-input {
    padding: 0 40px 0 20px;
    width: 160px;
    height: 38px;
    font-size: 14px;
    border: 1px solid #eee;
    border-radius: 40px;
    background: #eee;
    &.focused {
      width: 240px;
    }
    &.slide-enter {
      transition: all 0.2s ease-out;
    }
    &.slide-enter-active {
      width: 240px;
    }
    &.slide-exit {
      transition: all 0.2s ease-out;
    }
    &.slide-exit-active {
      width: 160px;
    }
  }
  .icon-sousuo{
    position: absolute;
    width: 30px;
    line-height: 30px;
    border-radius: 50%;
    right: 15px;
    text-align: center;
    top: 25px;
    &.focused {
      color: #fff;
      background: #777;
    }
  }
}
.right {
  height: 56px;
  float: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .btn {
    margin: 0 12px;
    font-weight: 400;
    text-align: center;

    cursor: pointer;

    padding: 6px 12px;
  }
  .style-mode-btn {
    line-height: 20px;
    padding: 17px 10px;
    .iconfont {
      font-size: 24px;
    }
    color: #969696;
  }
  .log-in {
    color: #969696;
    font-size: 15px;
  }
  .sign-up {
    width: 80px;
    height: 24px;
    line-height: 24px;

    border: 1px solid rgba(236, 97, 73, 0.7);
    border-radius: 20px;
    font-size: 15px;
    color: #ea6f5a;

    &:hover {
      color: #ec6149;
      border-color: #ec6149;
      background-color: rgba(236, 97, 73, 0.05);
    }
  }

  .write-btn {
    width: 80px;
    height: 24px;
    line-height: 24px;

    border-radius: 20px;
    font-size: 15px;
    color: #fff;
    background-color: #ea6f5a;
  }
}
